package com.mapper;

import com.entity.Account;
import com.entity.Member;
import com.entity.MemberExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface MemberMapper {
    long countByExample(MemberExample example);

    int deleteByExample(MemberExample example);

    int deleteByPrimaryKey(String mno);

    int insert(Member record);

    int insertSelective(Member record);

    List<Member> getAll();

    List<Member> selectByExample(MemberExample example);

    List<Member> getMembersByPage(Map map);

    public Member getAccountByAccountName(String mname);


    Member selectByPrimaryKey(String mno);


    public Member memberByMnoWithAll(String mno);

    public Member memberByMnoWithTeam(String mno);


    int updateByExampleSelective(@Param("record") Member record, @Param("example") MemberExample example);

    int updateByExample(@Param("record") Member record, @Param("example") MemberExample example);

    int updateByPrimaryKeySelective(Member record);

    int updateByPrimaryKey(Member record);
}